#@layout()

#define css()
<link rel="stylesheet" href="/js/editor.md/css/editormd.css"/>
#end

#define main()
<div>
	<h3 class="clr clr5">标题</h3>
	<div class="item_detail">
		#(blog.title??)
	</div>
</div>

<div>
	<h3 class="clr clr5">摘要</h3>
	<div class="item_detail">
		#(blog.describe??)
	</div>
</div>

<div>
	<h3 class="clr clr5">关键字</h3>
	<div class="item_detail">
		#for(x1 : utilSplit(blog.keyWord))
			<span class="label label-default">#(x1)</span>
		#end
	</div>
</div>

<div>
	<h3 class="clr clr5">内容</h3>
	<div class="item_detail">
		<div id="wordsViewDiv" name="wordsViewDiv">
			<textarea style="display: none;">#(blog.content??)</textarea>
		</div>
	</div>
</div>

<div>
	<h3 class="clr clr5">时间</h3>
	<div class="item_detail">
		#date(blog.create_time,'yyyy-MM-dd')
	</div>
</div>

<!--<div>-->
    <!--<h3 class="clr clr5">留言</h3>-->
    <!--<div class="item_detail">-->
       <!-- -暂不提供留言服务- -->
    <!--</div>-->
<!--</div>-->

<div class="foot">
	<p>#(WEB_SITE_RECORD)</p>
	<p><a href="http://www.miitbeian.gov.cn/" style="color: #333">#(IP_RECORD)</a></p>
</div>
#end

#define js()
<script src="/js/editor.md/lib/marked.min.js"></script>
<script src="/js/editor.md/lib/prettify.min.js"></script>
<script src="/js/triggerMouse/triggerMouse.js"></script>
<script src="/js/editor.md/editormd.js"></script>
<script>
	var wordsView;
    $(document).ready(function () {

        wordsView = editormd.markdownToHTML("wordsViewDiv", {
            htmlDecode      : "style,script,iframe",  // you can filter tags decode
            emoji           : false,
            taskList        : false
            // tex             : true,  // 默认不解析
            // flowChart       : true,  // 默认不解析
            // sequenceDiagram : true  // 默认不解析
        });

        rightPlugModle();
    });
</script>
#end